package com.cc;

import domain.Flower;
import domain.Flower01;

import java.util.Scanner;

/**
 * @author cpp
 * @version 1.0
 * @date 2025/3/19 14:37
 * @description
 */

public class FlowerText {
    public static void main(String[] args) {
        Flower01 flower01 = new Flower01(10, 7);
        flower01.inital();
        while (true) {
            System.out.println("=======================欢迎光临“七彩鲜花”销售管理系统=================================");
            System.out.println("1.查询销售订单");
            System.out.println("2.修改销售订单");
            System.out.println("3.删除销售订单");
            System.out.println("4.系统退出");
            System.out.println("===================================================================================");
            int num = new Scanner(System.in).nextInt();
            switch (num) {
                case 1:
                    flower01.queryAll();
                    break;

                case 2:
                    System.out.println("请输入销售的编号");
                    int id = new Scanner(System.in).nextInt();
                    flower01.revise(id);
                    break;
                case 3:
                    System.out.println("请输入要删除的订单号：");
                    int name = new Scanner(System.in).nextInt();
                    flower01.deleteSale(name);
                    break;
                case 4:
                    System.out.println("系统退出,谢谢你的使用！");
                    return;
                default:
                    System.out.println("你的输入有误请重新输入！");
                    break;

            }
        }


    }
}


